package org.nmgyjt.springboot.beans.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@ApiModel("密码修改对象")
@Data
public class CsSystemAdminPasswordModifyBean {

    @NotBlank(message = "旧密码不允许为空")
    @ApiModelProperty(required = true, value = "旧密码", dataType = "string")
    private String oldPassword;

    @NotEmpty(message = "新密码不允许为空!")
    @ApiModelProperty(required = true, value = "新密码", dataType = "string")
    private String newPassword;

}
